/*----------------------------------------------------------------------------------------------
* This source file is part of Kinect-Fighter (A Fighting Game controlled 
*	by Kinect and Keyboard.)
*
* Copyright (c) 2012-2012 Hu Guozhu
*
* Usage of this program is free for non-commercial use and licensed under the
* the terms of the MIT License.
*
*-------------------------------------------------------------------------------------------------*/
#ifndef _KFToolKit_H_
#define _KFToolKit_H_

namespace KinectFighter
{

class KFToolKit
{

DECLARE_SINGLETON(KFToolKit)

public:
	~KFToolKit(void);

private:
	KFToolKit(void);


public:
	int mScreenWidth;
	int mScreenHeight;

	float GetTime(void)
	{
		static __int64 start = 0;
		static __int64 frequency = 0;

		if (start==0)
		{
			QueryPerformanceCounter((LARGE_INTEGER*)&start);
			QueryPerformanceFrequency((LARGE_INTEGER*)&frequency);
			return 0.0f;
		}

		__int64 counter = 0;
		QueryPerformanceCounter((LARGE_INTEGER*)&counter);
		return (float)((counter-start)/double(frequency));
	}





};












}

#endif
